import { HTTP } from '../util/http.js'

class LikeModel extends HTTP {
  like(behavior, artID, actegory){
    let url = behavior == "like" ?'like':'like/cancel'
     this.request({
       url:url ,
       method:'POST',
       data:{
         art_id:artID,
         type: actegory
       }
     }) 
  }
 //获取点赞信息
  getClassicLikeStatus(artID, actegory, sCallback){
    this.request({
      url: `classic/${actegory}/${artID}/favor`,
      success: sCallback
    })
  }
}
export { LikeModel }